<?php

use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateMerchantRecommendsTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('merchant_recommends', function (Blueprint $table) {
            $table->increments('id');
            $table->string('name')->comment('供应商名称');
            $table->integer('sort')->unsigned()->comment('排序');
            $table->integer('column')->unsigned()->comment('栏目----热门企业   2 招商加盟');
            $table->string('description')->comment('推荐描述');
            $table->string('addr')->comment('推荐地址');
            $table->string('logo')->default('')->comment('推荐图片');
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::drop('merchant_recommends');
    }
}
